package com.qzsf.backend.controller;


import com.qzsf.backend.common.Result;
import com.qzsf.backend.service.DashboardService;
import com.qzsf.backend.service.OrganizerService;
import com.qzsf.backend.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.time.Year;


/*
 * @Author: Dennis Chen
 * @CreateTime: 2024/10/30 16:59 周三
 * @Email 1429278462@qq.com
 * @Remark 管理员控制器
 * @Version 1.0
 */
@RestController
@RequestMapping("admins")
public class AdminController {
    @Autowired
    private UserService userService;
    @Autowired
    private DashboardService dashboardService;
    @GetMapping("info")
    public Result info(){
        return userService.info();
    }

    @GetMapping("/stats")
    public Result getStats(){
        return dashboardService.getStats();
    }
}
